翻訳と辞書
Words near each other
・ Ambigolimax valentianus
・ Ambigram
・ Ambigu
・ Ambigu (meal)
・ Ambiguities in Chinese character simplification
・ Ambiguity
・ Ambiguity (album)
・ Ambiguity (law)
・ Ambiguity aversion
・ Ambiguity effect
・ Ambiguity function
・ Ambiguity resolution
・ Ambiguity tolerance–intolerance
・ Ambiguous (film)
・ Ambiguous computing
Ambiguous grammar
・ Ambiguous image
・ Ambiguous loss
・ Ambiguous name resolution
・ Ambiguous viewpoint
・ Ambika
・ Ambika (actress)
・ Ambika (given name)
・ Ambika (Jainism)
・ Ambika (Mahabharata)
・ Ambika Anand
・ Ambika Chakrabarty
・ Ambika Charan Choudhury
・ Ambika Charan Guha
・ Ambika Dutt Ranga


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Ambiguous grammar : ウィキペディア英語版
Ambiguous grammar
In computer science, an ambiguous grammar is a context-free grammar for which there exists a string that can have more than one leftmost derivation, while an unambiguous grammar is a context-free grammar for which every valid string has a unique leftmost derivation. Many languages admit both ambiguous and unambiguous grammars, while some languages admit only ambiguous grammars. Any non-empty language admits an ambiguous grammar by taking an unambiguous grammar and introducing a duplicate rule or synonym (the only language without ambiguous grammars is the empty language). A language that only admits ambiguous grammars is called an inherently ambiguous language, and there are inherently ambiguous context-free languages. Deterministic context-free grammars are always unambiguous, and are an important subclass of unambiguous CFGs; there are non-deterministic unambiguous CFGs, however.
For real-world programming languages, the reference CFG is often ambiguous, due to issues such as the dangling else problem. If present, these ambiguities are generally resolved by adding precedence rules or other context-sensitive parsing rules, so the overall phrase grammar is unambiguous.
==Examples==


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Ambiguous grammar」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.